<script src="../jquery.js"></script>
<link rel="stylesheet" href="../css/common.css">


<meta charset="utf-8" />

<h3>用户管理</h3>
<div>
    <input placeholder="用户昵称" />
</div>
<div class="userlist">
    <div class="top">
       <span class="icon_checkbox"></span> 全选
    </div>
    <div id="ulist">

    </div>
</div>

<script>
    $.get("http://localhost/shop/userlist",{},function(data){
        for(var i=0;i<data.length;i++){
            var d = data[i];

            var ckSpan = document.createElement("span");
            ckSpan.className = "icon_checkbox";

            var phoneSpan = document.createElement("span");
            phoneSpan.innerHTML = d.phone;

            var userDiv = document.createElement("div");
            userDiv.className = "user";

            userDiv.appendChild(ckSpan);
            userDiv.appendChild(phoneSpan);

            ulist.appendChild(userDiv);
        }
    });
</script>











